package predict.app.my_second;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class OtherActivity extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        //根据键值对取得intent中的值
        String value = intent.getStringExtra("text");
        Log.e("IntentReceive->text", value);
    }
}